<?php
namespace app\index\controller;
use app\index\controller\Base;
class Index extends Base
{
    public function index()
    {
        $result = db('article')->paginate(2);
        $this->assign('articleList',$result);
        return $this->fetch();
    }
    
}
